Skip to content

Conversation

@simone-dbx-labs
Copy link
Contributor

What does this PR do?

Modified the scripts to pass an additional --generate-json switch to analyzer.

Relevant implementation details

updated all the files responsible for enabling and propagating the new switch --generate-json for the analyzer

Linked issues

Resolves #..
#2010

Functionality

  • added relevant user documentation
  • added new CLI command
  • [x ] modified existing command: databricks labs lakebridge analyze --generate-json

Tests

not tested yet. Th exeisting functionality stays as is, with the new switch the analyzer produces an additional json file

  • manually tested
  • added unit tests
  • added integration tests

@github-actions
Copy link

github-actions bot commented Sep 10, 2025

✅ 51/51 passed, 9 flaky, 4m13s total

Flaky tests:

  • 🤪 test_validate_mixed_checks (153ms)
  • 🤪 test_validate_invalid_source_tech (156ms)
  • 🤪 test_validate_non_empty_tables (7ms)
  • 🤪 test_validate_invalid_schema_path (1ms)
  • 🤪 test_validate_table_not_found (1ms)
  • 🤪 test_transpiles_informatica_to_sparksql_non_interactive[False] (23.343s)
  • 🤪 test_transpiles_informatica_to_sparksql (25.363s)
  • 🤪 test_transpile_teradata_sql (26.932s)
  • 🤪 test_transpile_teradata_sql_non_interactive[False] (6.368s)

Running from acceptance #3033

@codecov
Copy link

codecov bot commented Nov 20, 2025

Codecov Report

❌ Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 13.74%. Comparing base (db65960) to head (8ab773e).

Files with missing lines Patch % Lines
...ks/labs/lakebridge/analyzer/lakebridge_analyzer.py 0.00% 5 Missing ⚠️
src/databricks/labs/lakebridge/cli.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2011       +/-   ##
===========================================
- Coverage   65.23%   13.74%   -51.50%     
===========================================
  Files         100      100               
  Lines        8504     8505        +1     
  Branches      875      875               
===========================================
- Hits         5548     1169     -4379     
- Misses       2769     7277     +4508     
+ Partials      187       59      -128     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

lots of things have been changed since the last commit for this feature.
next commit will have my changes added
…json flag

- Updated Callable type signature to accept 5 parameters: (Path, Path, str, bool, bool)
- Fixed argument order in analyzer call to match bladespector signature: (source_dir, tmp_dir, platform, is_debug, generate_json)
- Ensures generate_json flag properly flows through to analyzer binary -j flag

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Added typing.cast to explicitly declare Analyzer.analyze signature
- Fixes CI mypy error where external package type information wasn't available
- Cast ensures Callable[[Path, Path, str, bool, bool], None] signature is recognized

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Add CLI option for analyzer in Lakebridge to support the json file generation

2 participants